export default {
    namespace: 'menu',
    state: {
        menuData : [],
        flatMenuKeys : [],
        openKeys : [],
    },
    reducers: {
        setMenuData(state, {menuData}) {
            return {...state, menuData};
        },
        setFlatMenuKeys(state, {flatMenuKeys}) {
            return {...state, flatMenuKeys};
        },
        setOpenKeys(state, {openKeys}) {
            return {...state, openKeys};
        },
    },
};
